var color = "red";

function sayColor(){
    console.log(window.color);
    
}
sayColor();


var gloable = function(){
    return this;
}();
console.log(gloable.color);

var str = "clean";
function show(){
    var str = "box";
    console.log(window.str);
    window.eval("str");
    console.log(gloable.str);
    console.log(this.str);
    
    
    
}
show();
var arr = new Array(3,1,2,5,4);
var max = Math.max.apply(Math,arr);
console.log(max);
var min = Math.min.apply(Math,arr);
console.log(min);
console.log("---------------------");
console.log(Math.ceil(1.1));
console.log(Math.floor(1.1));


console.log(Math.random());

console.log(Math.floor(Math.random()*(99-60))+60);


var colorArr = ["red","yellow","green","black","pink"];
var color = colorArr[Math.floor(Math.random()*colorArr.length)]
console.log(color);
